/*
CREATE TABLE "base_unit_project_type" (
  "sequence_nbr" text(20) NOT NULL,
  "unit_project_name" text(255),
  "del_flag" text(50),
  "remark" text(1024),
  "rec_user_code" text(32),
  "rec_status" text(4),
  "rec_date" text(20),
  "extend1" text(64),
  "extend2" text(64),
  "extend3" text(64),
  "description" text(255),
  "agency_code" text(64),
  "product_code" text(64),
  "sort_no" integer(11),
  PRIMARY KEY ("sequence_nbr")
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseUnitProjectType {
    pub sequence_nbr: String,
    pub unit_project_name: Option<String>,
    pub del_flag: Option<String>,
    pub remark: Option<String>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
    pub agency_code: Option<String>,
    pub product_code: Option<String>,
    pub sort_no: Option<i32>,
}
crud!(BaseUnitProjectType {}, "base_unit_project_type");
